<?php 
/**
*  
*/
class DemoTemp extends My_Controller {
	public function __construct() {
		# code...
		parent::__construct();
		

	}
	public function index() {
		$data['url_path']=$this->config->item('url_path');
		$data['temp_path']=$this->config->item('temp_path');
        $data['upload_path']=$this->config->item('upload_path');
        $data['data_listAlbumHot']=$this->Malbum->getAlbumHot(9);
		$data['data_listSong_hot']=$this->Mmusic->getTopSong(10);
		$data['data_listAlbumHot']=parent::getBase64Code($data['data_listAlbumHot'],'idAlbum');
		$data['data_listAlbumHot']=parent::getBase64Code($data['data_listAlbumHot'],'idArtist');
		$data['data_listAlbumHot']=parent::convertStringUrl($data['data_listAlbumHot'],'strNameAlbum','titleAlbum');
		$data['data_listAlbumHot']=parent::convertStringUrl($data['data_listAlbumHot'],'strArtist','titleArtist');		
		$this->template->add_title('home page');
		$this->template->add_css('views/user/public/css/content-left-topic.css');
		$this->template->add_css('views/user/public/css/content-left-zone.css');
		$this->template->parse_view('content_left','user/module/content-navleft-topic',$data);
		$this->template->parse_view('content_left','user/module/content-navleft-zone',$data);
		$this->template->parse_view('content_center','user/module/content-albumhot',$data);
		$this->template->render();
	}
}

 ?>